#include "fstream_log.hpp"

using std::ofstream;
using std::string;

namespace bobs
{
  namespace services
  {
    fstream_log::fstream_log(const file_path &file) : m_file(file)
    {
    }
    
    void fstream_log::write(const string &msg)
    {
      ofstream ofs(m_file.string().c_str(), ofstream::app);

      if (ofs) {
	write_stream(ofs, msg);
      }

      ofs.close();
    }
  }
}

